package com.sky.utils;

import com.sky.result.Result;

/**
 * ClassName: ResultUtil
 * Description:
 *
 * @Author: Jdz
 * @Create: 2024/1/24 - 16:04
 */
public class ResultUtil {
    public static Result<String> getResult(boolean res) {
        if (res) {
            return Result.success();
        } else {
            return Result.error("操作失败");
        }
    }
}
